import { createApp } from 'vue'
import App from './App.vue'
import router from "./router";
// import store from "./store";
// import mitt from "mitt"

const app = createApp(App)

// 创建事件总线
// app.config.globalProperties.$bus = new (mitt as any)();

// 定义全局指令
// app.directive("focus", {
//   mounted(el, bindings, vnode, preVnode) {
//     console.log("focus mounted");
//     el.focus();
//   }
// })

app.use(router)
app.mount('#app')
